package com.zhentao.AdWithdrawal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName ad_withdrawal
 */
@TableName(value ="ad_withdrawal")
@Data
public class AdWithdrawal implements Serializable {
    /**
     * id
     */
    @TableId(value = "withdrawal_id", type = IdType.AUTO)
    private Integer withdrawalId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 提现金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 提现请求时间
     */
    @TableField(value = "request_date")
    private Date requestDate;

    /**
     * 审批时间
     */
    @TableField(value = "approval_date")
    private Date approvalDate;

    /**
     * 提现请求状态0待处理1已批准2已拒绝
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 拒绝理由
     */
    @TableField(value = "rejection_reason")
    private String rejectionReason;

    /**
     * 修改人id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 外键
     */
    @TableField(exist = false)
    private String nickname;

    /**
     * 外键 手机号
     */
    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}